using System.Collections.Generic;
using CQRS.General;

namespace CQRS.Events
{
    public interface IBus<in TMessage> : IUnitOfWork where TMessage: class, new()
    {
        void Publish(TMessage message);
        void Publish(IEnumerable<TMessage> messages);
    }
}